package com.lcy.demo;

import java.util.ArrayList;
import java.util.List;

/**
 * 创建时间：2017/4/15 10:16
 *
 * @author 娄存银
 * @version 1.0
 */
public class ReferenceTransferDemo {
    private List<String> list;

    public ReferenceTransferDemo() {
        clearList(list);
    }

    private void clearList(List<String> list){
        if(list == null){
            list = new ArrayList<>();
        }else {
            list.clear();
        }
    }

    public static void main(String[] args) {
        ReferenceTransferDemo demo = new ReferenceTransferDemo();
        System.out.println(demo.list);
    }
}
